﻿using System.Collections.Generic;
using System.Xml.Serialization;

namespace MetaMapics.Gpx
{
  public class Route
  {
    [XmlElement("name")] public string Name {get; set;}
    [XmlElement("cmt")] public string Comment {get; set;}
    [XmlElement("desc")] public string Description {get; set;}
    [XmlElement("src")] public string Source {get; set;}
    [XmlElement("link")] public List<Link> Links {get; set;}
    [XmlElement("number")] public uint ?Number {get; set;}
    [XmlIgnore] public bool NumberSpecified { get { return Number.HasValue; } } 
    [XmlElement("type")] public string Type {get; set;}
    [XmlElement("extensions")] public Extensions Extensions {get; set;}
    [XmlElement("rtept")] public List<Waypoint> RoutePoints { get; set; }

    public Route()
    {
      RoutePoints = new List<Waypoint>();
      Links = new List<Link>();
    }
  }
}
